/*
 *  Copyright 2011-2012 Redia A/S
 * 
 *  This file is part of Redias Android Utilities.
 *
 *  Redias Android Utilities is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Redias Android Utilities is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with Redias Android Utilities.  If not, see <http://www.gnu.org/licenses/>.
 */
package dk.redia.lib.xmlrpc;

import org.apache.http.client.protocol.ClientContext;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.protocol.SyncBasicHttpContext;

import dk.redia.lib.utils.AppConfiguration;

public class InfoGalleriXmlRpcClientCall extends XmlRpcClientCall {
	
	private static SyncBasicHttpContext infoGalleryHttpContext = new SyncBasicHttpContext(null);
	
	static {
		infoGalleryHttpContext.setAttribute(ClientContext.COOKIE_STORE, new BasicCookieStore());
	}
	
	public InfoGalleriXmlRpcClientCall() {
		super();
		this.url = AppConfiguration.getInstance().getInfoGalleriXmlRpcUrl();
		this.httpContext = InfoGalleriXmlRpcClientCall.infoGalleryHttpContext;
	}
}
